package tool;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;

import javazoom.jl.player.Player;

public class Musics extends Thread {
	String MUrl;
	Player Mplay;
	public Musics(String MUrl){
		this.MUrl=MUrl;
	}
	@Override
	public void run() {
		File file = new File(MUrl);
		try {
			FileInputStream Files = new FileInputStream(file);
			BufferedInputStream buf = new BufferedInputStream(Files);
			Mplay = new Player(buf);
			Mplay.play();
		} catch (Exception e) {
			e.printStackTrace();
		}
		Mplay.close();
	}
}
